<?php

require_once('conn.php');
require_once('functions.php');
$uid = $_GET['id'];
$userdataArr = $mysql->query("select * from `user` WHERE `id` = {$uid}");
$userdata = $userdataArr[0];
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>微有趣</title>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" type="text/css" href="./assets/css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="./assets/css/focus.css"/>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script>
        function changeSize() {
            var propo = $(window).width() / 640;
            $('html').css('font-size', 40 * propo + 'px');
        }
        ;
        changeSize();
        $(window).resize(function () {
            changeSize();
        });
    </script>
</head>
<body>
<div class="wrap">
    <div class="header">
        <i class="money"></i>
        <p>金币：<span class="num"><?= $userdataArr[0]['gold'] ?></span></p>
        <a href="./record.php?id=<?= $uid ?>" class="exchg">兑换记录</a>
    </div>
    <div class="gs">立即扫码</div>
</div>
<script type="text/javascript">
    $(".gs").click(function () {
        window.jsObj.openWeixin();
    })
</script>
</body>
</html>
